﻿<Window x:Class="SmartMeterParamSetting.UI.SelectScheme"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="方案列表" Height="300" Width="300" WindowStartupLocation="CenterScreen" ShowInTaskbar="False" Topmost="True">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="40"/>
        </Grid.RowDefinitions>
        <TextBlock Margin="5,0,0,0" Grid.Row="0" Text="请选择要加载的方案:" VerticalAlignment="Center"/>
        <ListBox  Margin="5,0" Grid.Row="1"
            Name="Lst_Schemes" 
            HorizontalAlignment="Stretch" 
            BorderBrush="{DynamicResource selectedStroke}" 
            FontSize="13.333" 
            Background="#FFF0F0F0"
            ItemsSource="{Binding}" 
            MouseDoubleClick="Lst_Schemes_MouseDoubleClick"
            >
        </ListBox>
        <Grid Grid.Row="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="50*" />
                <ColumnDefinition Width="90" />
                <ColumnDefinition Width="90" />
                <ColumnDefinition Width="50*" />
            </Grid.ColumnDefinitions>
            <Button Name="btnOk" Grid.Column="1" VerticalAlignment="Center" Content="确定" Width="80" Margin="5" Click="Button_Click"/>
            <Button Name="btnCancel" Grid.Column="2" VerticalAlignment="Center" Content="取消" Width="80" Margin="5" Click="Button_Click"/>
        </Grid>
    </Grid>
</Window>
